package com.rhaggarty.data.type.game;

/**
 * A representation of a card face/value, irrespective of suit. Note that an individual card can have multiple values (for
 * example, Ace).
 * 
 * @author Ryan Haggarty (ryanmh@gmail.com)
 * 
 */
public enum Ordinal {

    ACE("A", new int[] { 1, 11 }), TWO("2", new int[] { 2 }), THREE("3", new int[] { 3 }), FOUR("4", new int[] { 4 }), FIVE("5", new int[] { 5 }),
    SIX("6", new int[] { 6 }), SEVEN("7", new int[] { 7 }), EIGHT("8", new int[] { 8 }), NINE("9", new int[] { 9 }), TEN("10", new int[] { 10 }),
    JACK("J", new int[] { 10 }), QUEEN("Q", new int[] { 10 }), KING("K", new int[] { 10 });

    private final String text;
    
    private final int[] values;

    private Ordinal(final String text, final int[] values) {
        this.text = text;
        this.values = values;
    }

    public String getText() {
        return text;
    }
    
    public int[] getValues() {
        return values;
    }
}
